import java.util.Scanner;

public class Demo07 {
    public static void main(String[] args) {
        System.out.println("请输入用户名:");
        Scanner sc = new Scanner(System.in);
        String userName = sc.next();
        System.out.println("请输入密码:");
        String passWord = sc.next();
        if(userName.equals("admin") && passWord.equals("123456")){
            System.out.println("跳转首页");
        }else{
            System.out.println("登录失败，请重新登录");
        }
    }
}
